﻿using System;
using System.Collections.Generic;
using System.ComponentModel;

namespace IssueVision.Common
{
    public class ResultsArgs<T> : AsyncCompletedEventArgs
    {
        public ResultsArgs(IEnumerable<T> results, Exception error, bool cancelled, object userState)
            : base(error, cancelled, userState)
        {
            Results = results;
        }

        public bool HasError
        {
            get { return Error != null; }
        }

        public IEnumerable<T> Results { get; private set; }
    }
}
